package com.itheima.service.impl;

import com.itheima.dao.AccountDao;
import com.itheima.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service("accountService")
public class AccountServiceImpl implements AccountService {

    @Autowired
    //@Qualifier("accountDao2")
    //@Resource(name="accountDao1")
    private AccountDao accountDao;

    public void save() {
        // 调用dao
        accountDao.save();
    }
}
